package com.squid.cloud.fuel.purchase.client.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.squid.cloud.fuel.purchase.client.service.ServiceFeign;

@RestController
public class HelloController {
	
    @Autowired
    private ServiceFeign serviceFeign;

    @RequestMapping(value = "hello2")
    public String hello2(@RequestParam String name) {
        return serviceFeign.sayHello(name);
    }
}